package com.itheima.tliassystem.service;


import entity.Dept;
import org.springframework.transaction.annotation.Transactional;

import java.io.FileNotFoundException;
import java.util.List;

public interface DepService {

    List<Dept> listDept();
//添加
   public void addDept(Dept dept);

   //id删除
    @Transactional//
    void remove(Integer id) throws FileNotFoundException;

    void update(Dept dept);

    Dept selectById(Integer id);
}

